package hasthi.tools.analyze;

import hasthi.wsrf.WsrfClientUtils;

import org.apache.xmlbeans.XmlObject;

import wsrf.GetResourcePropertyDocumentResponseDocument;

public class WSDMPerfClient extends PerfClient{

    public WSDMPerfClient(String serviceUrl, int repeatCount, int meanWaitTime) {
        super("WSDMClient" + System.nanoTime(), serviceUrl, repeatCount, meanWaitTime, new PerfResponseVerifier() {
            public boolean verify(XmlObject response) {
               if(response instanceof GetResourcePropertyDocumentResponseDocument){
                   return true;
               }else{
                   return false;   
               }
            }
        }, WsrfClientUtils.buildGetResourcePropertyDocumentRequest());
    }
}
